package com.dv.driverless.service.impl;

import java.util.List;

import com.dv.driverless.domain.BasicCoil;
import com.dv.driverless.mapper.BasicCoilMapper;
import com.dv.driverless.service.IBasicCoilService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 材料信息Service业务层处理
 *
 * @author ruoyi
 * @date 2023-04-06
 */
@Service
public class BasicCoilServiceImpl implements IBasicCoilService
{
    @Autowired
    private BasicCoilMapper basicCoilMapper;

    /**
     * 查询材料信息
     *
     * @param id 材料信息主键
     * @return 材料信息
     */
    @Override
    public BasicCoil selectBasicCoilById(Long id)
    {
        return basicCoilMapper.selectBasicCoilById(id);
    }

    /**
     * 查询材料信息列表
     *
     * @param basicCoil 材料信息
     * @return 材料信息
     */
    @Override
    public List<BasicCoil> selectBasicCoilList(BasicCoil basicCoil)
    {
        return basicCoilMapper.selectBasicCoilList(basicCoil);
    }

    /**
     * 新增材料信息
     *
     * @param basicCoil 材料信息
     * @return 结果
     */
    @Override
    public int insertBasicCoil(BasicCoil basicCoil)
    {
        return basicCoilMapper.insertBasicCoil(basicCoil);
    }

    /**
     * 修改材料信息
     *
     * @param basicCoil 材料信息
     * @return 结果
     */
    @Override
    public int updateBasicCoil(BasicCoil basicCoil)
    {
        return basicCoilMapper.updateBasicCoil(basicCoil);
    }

    /**
     * 批量删除材料信息
     *
     * @param ids 需要删除的材料信息主键
     * @return 结果
     */
    @Override
    public int deleteBasicCoilByIds(Long[] ids)
    {
        return basicCoilMapper.deleteBasicCoilByIds(ids);
    }

    /**
     * 删除材料信息信息
     *
     * @param id 材料信息主键
     * @return 结果
     */
    @Override
    public int deleteBasicCoilById(Long id)
    {
        return basicCoilMapper.deleteBasicCoilById(id);
    }

}
